<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Cat{
            constructor(name,color){
                this.name = name;
                this.color = color;
            }
            eat(){
                console.log("nh");
            }
        }
        const cat1 =new Cat("yang","123");
        cat1.eat();
        console.log(cat1.__proto__.constructor);
        console.log(cat1.__proto__);
    </script>
</body>
</html>